/**
 * Created by Administrator on 2018/1/17.
 */

site_url  = 'http://192.168.124.12:8080/';
img_url = 'http://192.168.124.12:8080/';

//支付接口
do_alipay_url_ = site_url + '/api/v3/do_alipay';
do_weixin_pay_url_ = site_url + '/api/v3/do_weixin';
do_weixin_hao_pay_url_ = site_url + '/index/pay/do_weixin_hao';

wgtVer = "1.0.0";//版本号

//全局报错处理
//window.onerror=function(){return true;}
 
myApp_ = new Framework7({
    template7Pages: true
    , onPageInit: function (app, page) {
        if (page.name == 'index') {
			use('index/index');
			INDEX.__INIT__();
        }
    }
    , modalTitle: '提示'
    , modalButtonOk: '确定'
    , modalButtonCancel: '取消'
    , modalCloseByOutside: true
});
/**
 * 所有页面初始化
 */
myApp_.onPageInit('*', function (page) {
    clear_hash();
});
mainView = myApp_.addView('.view-main', {
    dynamicNavbar: true
});

